package pl.edu.utp.ga.selections;

import java.util.Random;

import pl.edu.utp.ga.Parents;
import pl.edu.utp.ga.Population;
import pl.edu.utp.ga.interfaces.Selection;

public abstract class BaseSelection implements Selection{
	
	protected Random random;
	protected Population population;
	protected int iteration;
	
	public BaseSelection(){
		random = new Random();
	}
	
	@Override
	public abstract Parents selectParents();
	
	@Override
	public void setPopulation(Population population) {
		this.population = population;
		iteration = 0;
	}

}
